<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<%@include file="/WEB-INF/common/taglibs.jsp"%>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="stylesheet" type="text/css"
			href="${ctx}resources/css/list.css" />
		<script type="text/javascript" src="${ctx}resources/js/page.js"></script>
		<script type="text/javascript" src="${ctx}resources/js/table.js"></script>
		<script type="text/javascript" src="${ctx}resources/js/um.js"></script>
		<title>>江苏龙芯梦兰科技股份有限公司-SMT生产管理系统</title>
	</head>
	<body>
		<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
			<form id="mainForm" action="${ctx}user/list.htm" method="post">
				<input type="hidden" name="page.pageNo" id="pageNo" value="${page.pageNo}" />
				<input type="hidden" name="page.orderBy" id="orderBy" value="${page.orderBy}" />
				<tr>
					<td height="30">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td height="24" bgcolor="#353c44">
									<table width="100%" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td>
												<table width="100%" border="0" cellspacing="0" cellpadding="0">
													<tr>
														<td width="6%" height="19" valign="bottom"> <div align="center"> <img src="${ctx}resources/images/tb.gif" width="14" height="14" /> </div></td>
														<td width="94%" valign="bottom"> <span class="STYLE1"> 用户基本信息列表</span> </td>
													</tr>
												</table>
											</td>
											<td>
												<div align="right">
													<span class="STYLE1"> 
													<input type="checkbox" name="checkbox11" id="selectAll"/> 全选 &nbsp;&nbsp;
													<smt:verify authority="user_add"><span  style="cursor: pointer;"  id="add" url="user"><img src="${ctx}resources/images/add.gif" width="10"height="10"/> 添加 &nbsp;</span></smt:verify>
													<smt:verify authority="user_delete"><span id="delete" style="cursor: pointer;"><img src="${ctx}resources/images/del.gif" width="10" height="10" /> 删除 &nbsp;&nbsp;</span></smt:verify>
													<smt:verify authority="user_modify"><span  style="cursor: pointer;" id="modify" url="user"><img src="${ctx}resources/images/edit.gif" width="10" height="10" /> 编辑 &nbsp;</span></smt:verify>
												</div>
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td>
						<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#a8c7ce">
							<tr style="padding-top: 2px">
								<td class="STYLE19" bgcolor="#FFFFFF" colspan="9">
									<span style="padding-left: 40px;">工卡号:<input width="50px" type="text" name="filter_LIKES_workCard" value="${param['filter_LIKES_workCard']}"> </span>
									<span style="padding-left: 20px">姓名:<input type="text" name="filter_LIKES_realName" value="${param['filter_LIKES_realName']}"> </span>
									<span style="padding-left: 20px">状态: <select name="filter_EQS_status">
											<option value=""> 全部 </option>
											<option value="0" ${param['filter_EQS_status']=='0'?"selected":""}> 正常 </option>
											<option value="1" ${param['filter_EQS_status']=='1'?"selected":""}> 限制 </option>
										</select> </span>
									<span style="padding-left: 20px"><input type="button"
											name="" onclick="search();" value="查询"> </span>
								</td>
							</tr>
							<tr>
								<td width="5%" height="20" bgcolor="d3eaef" class="STYLE10">
									<div align="center">
										<input type="checkbox" name="checkbox" id="checkall"/>
									</div>
								</td>
								<td width="10%" height="20" bgcolor="d3eaef" class="STYLE6">
									<div align="center">
										<span class="STYLE10">工卡号</span>
									</div>
								</td>
								<td width="10%" height="20" bgcolor="d3eaef" class="STYLE6">
									<div align="center">
										<span class="STYLE10">姓名</span>
									</div>
								</td>
								<td width="10%" height="20" bgcolor="d3eaef" class="STYLE6">
									<div align="center">
										<span class="STYLE10">联系方式</span>
									</div>
								</td>
								<td width="17%" height="20" bgcolor="d3eaef" class="STYLE6">
									<div align="center">
										<span class="STYLE10">地址</span>
									</div>
								</td>
								<td width="10%" height="20" bgcolor="d3eaef" class="STYLE6">
									<div align="center">
										<span class="STYLE10">注册日期</span>
									</div>
								</td>
								<td width="10%" height="20" bgcolor="d3eaef" class="STYLE6">
									<div align="center">
										<span class="STYLE10">生日</span>
									</div>
								</td>
								<td width="10%" height="20" bgcolor="d3eaef" class="STYLE6">
									<div align="center">
										<span class="STYLE10">状态</span>
									</div>
								</td>
								<td width="18%" height="20" bgcolor="d3eaef" class="STYLE6">
									<div align="center">
										<span class="STYLE10">基本操作</span>
									</div>
								</td>
							</tr>
							<c:forEach items="${page.result}" var="entity">
								<tr style="background-color: " >
									<td height="20" bgcolor="#FFFFFF">
										<div align="center">
											<input type="checkbox" name="objId" value="${entity.id}"/>
										</div>
									</td>
									<td height="20" bgcolor="#FFFFFF" class="STYLE6">
										<div align="center">
											<span class="STYLE19">${entity.workCard}</span>
										</div>
									</td>
									<td height="20" bgcolor="#FFFFFF" class="STYLE19">
										<div align="center">
											${entity.realName}
										</div>
									</td>
									<td height="20" bgcolor="#FFFFFF" class="STYLE19">
										<div align="center"> ${entity.phone} </div>
									</td>
									<td height="20" bgcolor="#FFFFFF" class="STYLE19">
										<div align="center"> ${entity.addr} </div>
									</td>
									<td height="20" bgcolor="#FFFFFF" class="STYLE19">
										<div align="center"> <fmt:formatDate value="${entity.createDate}" pattern="yyyy-MM-dd" />
										</div>
									</td>
									<td height="20" bgcolor="#FFFFFF" class="STYLE19">
										<div align="center"> <fmt:formatDate value="${entity.birthday}" pattern="yyyy-MM-dd" /> </div>
									</td>
									<td height="20" bgcolor="#FFFFFF" class="STYLE19">
										<div align="center"> ${entity.status=='0'?"正常":"限制"} </div>
									</td>
									<td height="20" bgcolor="#FFFFFF">
										<div align="center" class="STYLE21">
											<smt:verify authority="user_view"><a href="${ctx}user/user.htm?id=${entity.id}">查看</a> |</smt:verify> 
											 <smt:verify authority="user_delete">
											 <a href="javascript:if(confirm('确认要删除吗？')){window.location.href='${ctx}user/delete.htm?ids=${entity.id}';}">删除</a> | </smt:verify>
											<smt:verify authority="user_modify"><a href="${ctx}user/modify.htm?id=${entity.id}">修改</a> |
											 </smt:verify><smt:verify authority="user_permission"><a href="${ctx}user/authorize.htm?id=${entity.id}">授权</a></smt:verify>
										</div>
									</td>
								</tr>
							</c:forEach>
						</table>
					</td>
				</tr>
				<tr>
					<td height="30">
						<%@include file="/WEB-INF/common/footer.jsp"%>
					</td>
				</tr>
			</form>
		</table>
	</body>
</html>